package com.adong.config;

import com.adong.pojo.Car;
import com.adong.pojo.Dream;
import com.adong.pojo.House;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author adong
 */
@Configuration
@ComponentScan(value = "com.adong")
public class ApplicationConfig3 {
    @Bean(initMethod = "init", destroyMethod = "destroy")
    public Car car() {
        return new Car();
    }

    @Bean
    public House house() {
        return new House();
    }

    @Bean
    public Dream dream() {
        return new Dream();
    }
}
